﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class Hero
    {
        private string HeroName { get; set; }
        private string UserName { get; set; }
        private string HeroInfo { get; set; }
        private int Attack { get; set; }
        private int Defense { get; set; }
        private int Speed { get; set; }

        public Hero(string heroName,string userName,string heroInfo,int attack,int defense,int speed)
        {
            HeroName = heroName;
            UserName = userName;
            HeroInfo = heroInfo;
            Attack = attack;
            Defense = defense;
            Speed = speed;
        }
        public void GerHero()
        {
            Console.WriteLine("英雄名称：{0},英雄介绍：{1},攻击力：{2},防御力：{3},速度：{4}",this.HeroName,this.HeroInfo,this.Attack,this.Defense,this.Speed);
        }

    }
}
